package com.francisco.ets.modele;

import java.awt.Color;
import java.awt.Graphics;

import com.francisco.ets.util.Labo1Const;

public class Cercle extends Forme
{
	private int rayon;
	
	public Cercle() 
	{
		//super(Labo1Const.POSITION_INITIAL_X,Labo1Const.POSITION_INITIAL_Y);
		this.setCouleur(Color.red);
	}
	
	public Cercle(int nseq,int pointDepartX, int pointDepartY, int rayon) 
	{
		super(nseq,pointDepartX, pointDepartY);
		this.rayon=rayon;
		this.setCouleur(Color.red);
	}
	
	@Override
	public void drawFigure(Graphics g) 
	{
		g.setColor(getCouleur());
		g.drawOval(getPointDepartX(), getPointDepartY(), rayon, rayon);
		
	}

}
